package com.example.prjbackend.service;

import com.example.prjbackend.domain.Shixisheng;
import com.example.prjbackend.domain.ShixishengDetail;
import com.example.prjbackend.domain.ShixishengQueryParam;
import com.example.prjbackend.mapper.ShixishengMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShixishengService
{
    @Autowired
    ShixishengMapper shixishengMapper;

    public List<ShixishengDetail> list(ShixishengQueryParam param) {
        return shixishengMapper.list(param);
    }
    public int add(Shixisheng shixisheng) {
        return shixishengMapper.add(shixisheng);
    }

    public int edit(Shixisheng shixisheng) {
        return shixishengMapper.edit(shixisheng);
    }

    public int delete(Long[] ids) {
        return shixishengMapper.delete(ids);
    }
}
